package com.example.pool;

/**
 * @author: dangwen
 * @createDate: 2021/3/13
 */
public class SelfThreadPoolTest implements Runnable{
    @Override
    public void run() {
        System.out.println("SelfThreadPoolTest ++++++"+Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        SelfThreadPool selfThreadPool = new SelfThreadPool(30,5);
        for (int i = 0; i < 50; i++) {
            selfThreadPool.execute(new SelfThreadPoolTest());
        }
    }
}
